<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>注册</title>
  <link rel="stylesheet" href="public/semantic.min.css" media="screen" title="no title" charset="utf-8">
  <link rel="stylesheet" href="public/index.css" media="screen" title="no title" charset="utf-8">
</head>
<body>
  <div class="ui  container two column grid">
    <div class="column login" >
      <h4 class="ui top attached block header">
         注册
      </h4>
      <form class="ui form bottom attached segment ">
        <div class="field">
          <label>用户名*</label>
          <input type="text" name="username"  >
        </div>
        <div class="field">
          <label>手机号*</label>
          <input type="text" name="tel"  >
        </div>
        <div class="field">
          <label>邮箱</label>
          <input type="text" name="email"  >
        </div>
        <div class="field">
          <label>密码*</label>
          <input type="text" name="password" >
        </div>
        <div class="field">
          <label>确认密码*</label>
          <input type="text" name="pwd"  >
        </div>
        <div class="field">
          <label>地址*</label>
          <input type="text" name="address"  >
        </div>
        <!-- <div class="field">
          <div class="ui checkbox">
            <input type="checkbox" tabindex="0"  >
            <label>同意用户协议</label>
          </div>
        </div> -->
        <a class="ui button reg" type="botton">确认注册</a>
      </form>
    </div>

  </div>

  <script src="public/jquery-2.2.0.js" charset="utf-8"></script>
  <script src="public/index.js" charset="utf-8"></script>
  <script>
  $('.reg').click(function(){
    var data=getFormData('form');
    $.post('action.php?c=login&m=reg',{data:data},function(data){
      window.location.href="login.html";
    })
  })
  </script>
</body>
</html>
